import request from "@/config/utils/request";

// 到货验收新增
export function saveAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/saveAcceptanceCert",
    method: "post",
    data
  });
}

// 到货验收删除
export function removeAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/removeAcceptanceCert",
    method: "post",
    data
  });
}

// 到货验收查看
export function getAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/getAcceptanceCert",
    method: "post",
    data
  });
}

// 到货验收编辑
export function editAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/editAcceptanceCert",
    method: "post",
    data
  });
}
// 到货验收列表
export function getList(data) {
  return request({
    url: "/apis/smp/acceptancecert/listPageAcceptanceCert",
    method: "post",
    data
  });
}

// 合同选择弹框列表
export function listSmpEquipmentForCheck(data) {
  return request({
    url: "/apis/smp/smpequipment/listSmpEquipmentForCheck",
    method: "post",
    data
  });
}

// 新增时baseinfo回显
export function getSmpEquipmentConcById(data) {
  return request({
    url: "/apis/smp/smpequipment/getSmpEquipmentConcById",
    method: "post",
    data
  });
}

// 清单目录
export function getSmpPcConcMatListById(data) {
  return request({
    url: "/apis/smp/smppcconc/getSmpPcConcMatListById",
    method: "post",
    data
  });
}

// 品牌厂家接口
export function getManufacturerBrand(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpBrandRelation",
    method: "POST",
    data
  });
}
